package be.beeworks.scrumblebee

class Team {
    static final String PIG = "pig"
    static final String CHICKEN = "chicken"

    String name
    String role = PIG
    Product product

    static belongsTo = Product

    static hasMany = [sprints: Sprint, members: Person]
    
    static constraints = {
        role(nullable: false, inList: [PIG, CHICKEN])
        product(nullable: true)
    }
}
